package com.gddb.xwj.member.feign;

import com.gddb.xwj.member.hystrix.WeixinServiceFallback;
import com.gddb.xwj.weixin.service.WeiXinService;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * @Author xuwj
 * @Description: feign调用方式一、方式二
 * @CreateTime 2020/5/10 21:24
 * @Version 1.0
 */
//feign调用方式一
//@FeignClient("cs-provider-weixin")
//public interface WeixinServiceFeign {
//    @GetMapping("/getApp")
//    public Map<String, Object> getApp();
//}
//feign调用方式二 需要引入依赖 cs-provider-weixin
@FeignClient(value = "cs-provider-weixin",fallback = WeixinServiceFallback.class)
public interface WeixinServiceFeign extends WeiXinService{
}